package zxs.sino.elite.hub.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 自定义异常
 *
 * @author zhang
 */
@Setter
@Getter
public class RRException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	
    private String msg;
    private int code = 500;
    
    public RRException(String msg) {
		super(msg);
		this.msg = msg;
	}
    
    public RRException() {
        super();
    }
    
    public RRException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

}
